<?php
require_once '../common/requires.php';

$access_token = $_GET['access_token'];
$client->setAccessToken($access_token);

$params = array(
	'method' => 'friends.getFriends',
	'count' => '10',
);

$response = $client->api($params, true);
$friends = json_decode($response, true);
foreach($friends as $friend) {
	echo "<img src=\"{$friend['tinyurl']}\" />&nbsp;&nbsp;{$friend['name']}<br/>";
}
?>